package marcis.jarina.hibernate.dao;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Jan Marcis
 * Date: 7.7.11
 * Time: 14:20
 * To change this template use File | Settings | File Templates.
 */
public interface GenericDao<T> {

    void save(T... archives);

    T loadById(Integer id);

    List<T> filter(String property, Object value, Class<T> clazz);

    List<T> pagedFilter(String property, Object value, Class<T> clazz, int startIndex, int maxResults);

    List<T> getPagedList(int start, int maxResults);


    Long getTotalCount();

    int deleteAll();


}
